package com.project.class8_16;

public class CarBean {
    private Integer id;
    private String type;
    private String color;
    private Integer price;

    public CarBean(Integer id, String type, String color, Integer price) {
        this.id = id;
        this.type = type;
        this.color = color;
        this.price = price;
    }

    public CarBean() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "CarBean{" +
                "id=" + id +
                ", type='" + type + '\'' +
                ", color='" + color + '\'' +
                ", price=" + price +
                "}\n";
    }
}
